class ApplicationController < ActionController::API
  def render_page(relation)
    render json: {data: relation, meta: {total: relation.total_count}}
  end
end
